package cn.edu.swu.common;

public class PageTools {
    private static String Template = """
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>网上读书城</title>
    <link rel="stylesheet" type="text/css" href="css/bookstore.css"/>
</head>
<body>
<div style="float:right">
    <a href="./logout">退出系统</a>
</div>
<br><br>
<center>
    <h1 style="color:red">欢迎访问网上书城！！</h1>
    %s
</center>
    <div class='footer'>版权归ws所有</div>

</body>
</html>
            """;
    public static String wrap(String body){
        return String.format(Template,body);
    }
}